<? if ($sts=='edit') {?>
<form id="form_na" method="post" enctype="multipart/form-data">
<input type="hidden" name="sts" id="sts" value="edit"/>
<input type="hidden" name="id" id="id" value="<?=$id_na;?>"/>
<fieldset>

<label>Kategori</label> :  <input type="tex" name="kategori" id="kategori" style="width:150px;" class="easyui-validatebox text_na" value="<?=$kategori?>" /><br /><br />

<a id="simpan" href="#" style="float:right">Update Perubahan</a>
</fieldset>
</form>
<? } else {
?>

	<form id="form_na" method="post" enctype="multipart/form-data">
	<input type="hidden" name="sts" id="sts" value="add"/>
	<input type="hidden" name="id" id="id" value=""/>
	<fieldset >
	<label>Kategori</label> :  <input type="tex" name="kategori" id="kategori" style="width:150px;" class="easyui-validatebox text_na" /><br /><br />
	<a id="simpan" href="#" style="float:right"><span id="nm_simpan">Simpan</span></a>
	<a id="tutup" href="#" style="float:right"><span id="nm_tutup">Tutup</span></a>
	
	</fieldset>
	</form>


<?
}?>

<script>
$(".easyui-validatebox").validatebox({required:true } );
$(".easyui-validatemail").validatebox({required:true,validType:'email'}); 
sts_form="cl_kategori";
</script>
<script type="text/javascript" src="<?=base_url()?>assets/js/data/backend/form.js"></script>